package com.gimi.cloud.bbp.manage.consumer.service;


import com.gimi.cloud.bbp.common.utils.reqhead.Response;
import com.gimi.cloud.bbp.dto.params.LoginParams;
import com.gimi.cloud.bbp.dto.sys.SysMasterDTO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 用户登录接口
 * @author wbj
 * @version 1.0
 * @Description
 * @create 2017-12-20
 **/
public interface LoginService {
    /**
     * 管理员登录
     * @param request
     * @param response
     * @param param 登录参数
     * @throws Exception
     */
    Response login(HttpServletRequest request, HttpServletResponse response, LoginParams param) throws Exception;

    /**
     * 注销登录
     * @param request
     * @param response
     * @param masterDTO
     * @throws Exception
     */
    Response logout(HttpServletRequest request, HttpServletResponse response, SysMasterDTO masterDTO) throws Exception;
}
